﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace Home.MobileSales.Common.Entities
{
    public class Visit
    {
        public List<Order> Orders { get; set; }
        public int IdVisit { get; set; }
        public bool IsOrder { get; set; }
        public bool IsVisit { get; set; }
        public bool IsReadOnly { get; set; }
        public string TimeEndVisit { get; set; }
        public BuyPoint BuyPoint { get; set; }
        public string DateVisit { get; set; }
        public string GpsPosition { get; set; }
        public string ByPointName
        {
            get
            {
                return BuyPoint.NameBuyPoint;
            }
        }

        public string BuyPointAdress
        {
            get
            {
                return BuyPoint.Adress;
            }
        }
        
        public double BuyPointDebts
        {
            get { return BuyPoint.Debts; }
        }
    }
}
